package com.zsr.example.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zsr.example.entity.EduCourse;
import com.zsr.example.entity.EduTeacher;
import com.zsr.example.vo.SubjectNestedVo;

import java.util.List;
import java.util.Map;

/**
 * 自定义首页service
 * @author zsr
 * @date 2021/6/18 20:41
 */
public interface IndexFrontService  {
    /**
     * 查询前8条热门课程
     * @return
     */
    List<EduCourse> getHotCourseList();

    /**
     * 查询前4条名师
     * @return
     */
    List<EduTeacher> getFourTeacherList();

    /**
     * 查询前n条分类
     * @param count
     * @return
     */
    List<SubjectNestedVo> getSubjectNestedList(Long count);

    Map<String,Object> searchByKeyWord(Page<EduCourse> pageParam, String keyword);

    int getMsgCount(String uId);

    void doRead(String uId);
}